<ul class="dux-count uk-grid uk-grid-width-medium-1-2 uk-grid-width-large-1-2 uk-grid-width-xlarge-1-4">
    <li class="uk-grid-margin">
        <div class="uk-panel dux-panel dux-bg-blue dux-color-white">
            <h3 class="uk-panel-title dux-bg-blue-de dux-color-white">运行时间</h3>
            <div class="uk-panel-body">
                {$runTime}<small>天</small>
            </div>
        </div>
    </li>
    <li class="uk-grid-margin">
        <div class="uk-panel dux-panel dux-bg-red dux-color-white">
            <h3 class="uk-panel-title dux-bg-red-de dux-color-white">用户数量</h3>
            <div class="uk-panel-body">
                {$userCount}<small>个</small>
            </div>
        </div>
    </li>
    <li class="uk-grid-margin">
        <div class="uk-panel dux-panel dux-bg-green dux-color-white">
            <h3 class="uk-panel-title dux-bg-green-de dux-color-white">APP数量</h3>
            <div class="uk-panel-body">
                {$appCount}<small>个</small>
            </div>
        </div>
    </li>
    <li class="uk-grid-margin">
        <div class="uk-panel dux-panel dux-bg-orange dux-color-white">
            <h3 class="uk-panel-title dux-bg-orange-de dux-color-white">系统记录</h3>
            <div class="uk-panel-body">
                {$logCount} <small>条</small>
            </div>
        </div>
    </li>
</ul>
<div class="uk-grid">
    <div class="uk-width-medium-1-1 uk-width-large-1-2">
        <div class="uk-panel">
            <div class="uk-panel dux-panel uk-panel-box dux-quick">
                <ul class="uk-grid uk-grid-width-1-2 uk-grid-width-medium-1-3 uk-grid-width-large-1-3 uk-grid-width-xlarge-1-5 menu-list">
                    <!--loop{$quickMenu as $menu}-->
                    <li class="uk-grid-margin">
                        <a class="dux-panel-icon" href="{$menu.url}">
                            <i class="uk-icon-{$menu.icon} dux-bg-{$menu.color} uk-animation-scale uk-animation-hover"></i>
                            <p>{$menu.name}</p>
                        </a>
                    </li>
                    <!--{/loop}-->
                </ul>
            </div>
        </div>
        <div class="uk-panel">
            <table class="uk-table uk-table-striped">
                <tbody>
                    <tr>
                        <td>操作系统</td>
                        <td><?php echo PHP_OS; ?></td>
                    </tr>
                    <tr>
                        <td>运行环境</td>
                        <td><?php echo $_SERVER['SERVER_SOFTWARE']; ?> <?php echo php_sapi_name(); ?></td>
                    </tr>
                    <tr>
                        <td>mysql版本</td>
                        <td><?php echo mysql_get_server_info(); ?></td>
                    </tr>
                    <tr>
                        <td>服务器IP</td>
                        <td>{$_SERVER.SERVER_ADDR}:{$_SERVER.SERVER_PORT}</td>
                    </tr>
                    <tr>
                        <td>服务器时间</td>
                        <td>{date('Y-m-d H:i:s')} {date_default_timezone_get()}</td>
                    </tr>
                    <tr>
                        <td>脚本超时</td>
                        <td><?php echo get_cfg_var( "max_execution_time") ; ?>秒</td>
                    </tr>
                    <tr>
                        <td>系统路径</td>
                        <td><?php echo BASE_PATH; ?></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="uk-width-medium-1-1 uk-width-large-1-2">
        <div class="uk-panel uk-panel-box dux-panel uk-panel-box-primary">
            <div class="uk-grid dux-weather">
                <div class="uk-width-1-5">
                    <?php if($loginUserInfo[ 'qq']){ ?>
                    <img src="http://q1.qlogo.cn/g?b=qq&nk={$loginUserInfo.qq}&s=100" class="uk-border-circle" width="100" height="100" alt="system">
                    <?php }else{ ?>
                    <img src="<?php echo PUBLIC_URL; ?>system/images/avatar.png" class="uk-border-circle" width="100" height="100" alt="system">
                    <?php } ?>
                </div>
                <div class="uk-width-4-5">
                    <div class="weather-body">
                        <h2>{$loginUserInfo.nicename}</h2>
                        <p>{date('Y-m-d H:i:s',$loginUserInfo.last_login_time)}</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="uk-panel uk-panel-box ">
            <h3>系统备忘</h3>
            <form class="uk-form ">
                <textarea cols="30" rows="5" id="remark" placeholder="请输入您要记录的信息" class="uk-width-1-1">{$loginUserInfo.remark}</textarea>
            </form>
        </div>
        <div class="uk-panel uk-panel-box uk-panel-box-primary">
            <div class="uk-panel-title dux-color-white">开发信息</div>
            <table class="uk-table">
                <tbody>
                    <tr>
                        <td width="80">系统名称</td>
                        <td>{config('COPYRIGHT.COPYRIGHT_NAME')}</td>
                    </tr>
                    <tr>
                        <td>开发公司</td>
                        <td>{config('COPYRIGHT.COPYRIGHT_COMPANY')}</td>
                    </tr>
                    <tr>
                        <td>联系方式</td>
                        <td>
                            {config('COPYRIGHT.COPYRIGHT_CONTACT')}
                        </td>
                    </tr>
                    <tr>
                        <td>开发团队</td>
                        <td>{config('COPYRIGHT.COPYRIGHT_AUTHOR')}</td>
                    </tr>
                    <tr>
                        <td>公司主页</td>
                        <td><a href="{config('COPYRIGHT.COPYRIGHT_URL')}">{config('COPYRIGHT.COPYRIGHT_URL')}</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<script>
    Do.ready('base', function () {
        $('#remark').blur(function(){
            $.post('{url("system/SystemUser/editAjax")}',{id:'{$loginUserInfo.user_id}',field:'remark',val:$(this).val()});
        });
    });
</script>